package date.yetao.maven.all.mybatis.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 类附加信息
 * @author yetao
 **/
public class ClassInfoDto {

    /**
     * 类全名
     */
    private String className;
    /**
     * 字段的相关信息
     */
    private List<FieldInfoDto> fieldList =new ArrayList<>();

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<FieldInfoDto> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<FieldInfoDto> fieldList) {
        this.fieldList = fieldList;
    }

    /**
     * 字段信息封装
     */
    public static class FieldInfoDto {
        /**
         * 字段名
         */
        private String fieldName;

        /**
         * 附加的注解
         */
        private List<String> annotations;

        public String getFieldName() {
            return fieldName;
        }

        public void setFieldName(String fieldName) {
            this.fieldName = fieldName;
        }

        public List<String> getAnnotations() {
            return annotations;
        }

        public void setAnnotations(List<String> annotations) {
            this.annotations = annotations;
        }
    }

}
